<html>
  <title>
    HI
  </title>
  <body>
		
    <script type="text/javascript">

      var _featherLoaded = false; 
      
      Feather_APIKey = ''; 
      Feather_Theme = 'bluesky'; 
      Feather_EditOptions = 'all'; 
      Feather_OpenType = 'inject'; 
      Feather_CropSizes = '320x240,640x480,800x600,1280x1024'; 
      
      Feather_OnSave = function(id, url) { 
        var e = document.getElementById(id); 
        e.src = url; 
        aviaryeditor_close();
      } 
      
      Feather_OnLoad = function() { 
        _featherLoaded = true; 
      } 
      
      function launchEditor(imageid) { 
        if (_featherLoaded) { 
          var src = document.getElementById(imageid).src; 
          aviaryeditor(imageid, src); 
        } 
      } 
    </script> 
    <script type="text/javascript" src="http://feather.aviary.com/js/feather.js">
    </script>      
    
    <img id="goog" src="http://www.google.com/images/logos/ps_logo2.png" style="visibility:hidden"/>
    <p>
      <form name="goog" method="GET">
	<input type="button" value="Publish" onclick="doSomething();" />
      </form>
      <script type="text/javascript">
	launchEditor("goog");

	function doSomething() {
	  document.write("<form id='savedimg' name='savedimg' action='hello.html' method='GET'>");
	  document.write("<input type='hidden' name='test' value='hi' />");
	  document.write("<input type='hidden' name='url' value='" + document.getElementById('goog').src + "' /></form>");
	  document.forms["savedimg"].submit();
	}
      </script>
    </p>

  </body>
</html>
